package com.example.spidertp.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2023/7/15 2:21 下午
 */

@Data
@Component
public class SpiderThreadPoolConfig {

    @Value("${spider-tp.execution.pool.core-size}")
    private  int corePoolSize;

    @Value("${spider-tp.execution.pool.max-size}")
    private  int maxPoolSize;

    @Value("${spider-tp.execution.pool.queue-capacity}")
    private  int queueCapacity;

    @Value("${spider-tp.execution.pool.keep-alive}")
    private  int keepAliveTime;

}
